let arr =[1,2,3,4,2,3,4,3,3,3];

arr= [...new Set(arr)];  // [ 1, 2, 3, 4 ]

console.log(arr);